# $Id: PKGBUILD 166720 2012-09-17 05:06:14Z tpowa $
# Maintainer: Tobias Powalowski <tpowa@archlinux.org>
pkgname=pinentry
pkgver=0.8.2
pkgrel=1
pkgdesc="a collection of simple PIN or passphrase entry dialogs which utilize the Assuan protocol(textmode only)"
arch=('i686' 'x86_64' 'sh4')
license=('GPL')
url="http://www.gnupg.org/aegypten2"
depends=('ncurses' 'libcap>=2.16')
#makedepends=('gtk2' 'qt')
#optdepends=('gtk2: for gtk2 backend'
#            'qt: for qt4 backend')  
source=(ftp://ftp.gnupg.org/gcrypt/$pkgname/$pkgname-$pkgver.tar.bz2)
install=pinentry.install

build() {
  cd $srcdir/$pkgname-$pkgver
  ./configure --prefix=/usr \
	--enable-pinentry-curses \
        --disable-pinentry-gtk \
        --disable-pinentry-qt \
	--disable-pinentry-gtk2 \
        --disable-pinentry-qt4 \
	--enable-fallback-curses
  make
}

package() {
  cd $srcdir/$pkgname-$pkgver
  make DESTDIR=${pkgdir} install 
}
md5sums=('82e6114e5e27a8ab36f314b332a6e024')
